bcc=$(MAKEDIR)\bcc32.exe
inc_dir=$(MAKEDIR)\..\Include
lib_dir=$(MAKEDIR)\..\Lib

cc_opt = /Ox /TP -I"$(inc_dir)" -L"$(lib_dir)" -n".\obj"

help:
	# to build for macosx: make mac_all
	# to build for win+bcc: make all

clean:
	#unix,linux,cygwin specific
	#rm -f -r .\obj\*.*
	
	#windows version
	del .\obj\*.* /Q

build:
	$(bcc) $(cc_opt) mirror.cpp
	
all: clean build

mac_clean:
	rm -r -f mirror
	
mac_build:
	g++ -O3 -Wall -fmessage-length=0 -MMD -MP  -o"mirror" mirror_mac.cpp
	chmod 755 ./mirror
	
mac_all: mac_clean mac_build
